package com.gtenacg.cartoonservice.service;

import com.gtenacg.cartoonservice.pojo.model.Admin;
import org.springframework.dao.DuplicateKeyException;

import java.util.List;

public interface AdminService {

    List<Admin> list();

    Admin login(Admin admin);

    Admin getById(Integer id);

    Integer insert(Admin admin) throws DuplicateKeyException;

    void update(Admin admin);

    void delete(List<Integer> ids);

    void resetPassword(Admin admin);
}
